﻿@* Ui层项目 - 共享模块文件 *@
@using Util.Generators.Helpers
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    Model.Output.FileNameNoExtension = "shared.module";
    Model.Output.Extension = ".ts";
    Model.Output.RelativeRootPath = $"src/{service.GetUiProjectName()}/ClientApp/src/app/shared";
}
import { NgModule, Type } from '@@angular/core';
import { CommonModule } from '@@angular/common';
import { ReactiveFormsModule, FormsModule } from '@@angular/forms';
import { RouterModule } from '@@angular/router';
import { AlainThemeModule } from '@@delon/theme';
import { DelonACLModule } from '@@delon/acl';
import { Shared_Delon_Modules } from './shared-delon.module';
import { Shared_Zorro_Modules } from './shared-zorro.module';
import { UtilModule } from 'util-angular';
import { NgxTinymceModule } from 'ngx-tinymce';

const THIRDMODULES: Array<Type<void>> = [UtilModule, NgxTinymceModule ];
const COMPONENTS: Array<Type<void>> = [];
const DIRECTIVES: Array<Type<void>> = [];

@@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        RouterModule,
        ReactiveFormsModule,
        AlainThemeModule.forChild(),
        DelonACLModule,        
        ...Shared_Delon_Modules,
        ...Shared_Zorro_Modules,
        ...THIRDMODULES
    ],
    declarations: [
    ...COMPONENTS,
    ...DIRECTIVES
    ],
    exports: [
        CommonModule,
        FormsModule,
        ReactiveFormsModule,
        RouterModule,
        AlainThemeModule,
        DelonACLModule,
        ...Shared_Delon_Modules,
        ...Shared_Zorro_Modules,
        ...THIRDMODULES,
        ...COMPONENTS,
        ...DIRECTIVES
    ]
})
export class SharedModule {
}
